﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbSectionSettings : OdDbObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbSectionSettings(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbSectionSettings_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbSectionSettings obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbSectionSettings()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbSectionSettings(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdDbSectionSettings cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbSectionSettings_cast(OdRxObject.getCPtr(pObj));
			OdDbSectionSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbSectionSettings_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbSectionSettings_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbSectionSettings_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdDbSectionSettings createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbSectionSettings_createObject();
			OdDbSectionSettings result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbSectionSettings)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdResult dwgInFields(OdDbDwgFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbSectionSettings_dwgInFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dwgOutFields(OdDbDwgFiler pFiler)
		{
			TD_DbPINVOKE.OdDbSectionSettings_dwgOutFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual OdResult dxfInFields(OdDbDxfFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbSectionSettings_dxfInFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dxfOutFields(OdDbDxfFiler pFiler)
		{
			TD_DbPINVOKE.OdDbSectionSettings_dxfOutFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdResult subGetClassID(IntPtr pClsid)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbSectionSettings_subGetClassID(this.swigCPtr, pClsid);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void reset()
		{
			TD_DbPINVOKE.OdDbSectionSettings_reset__SWIG_0(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void reset(OdDbSectionSettings.SectionType nSecType)
		{
			TD_DbPINVOKE.OdDbSectionSettings_reset__SWIG_1(this.swigCPtr, (int)nSecType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdDbSectionSettings.SectionType currentSectionType()
		{
			OdDbSectionSettings.SectionType result = (OdDbSectionSettings.SectionType)TD_DbPINVOKE.OdDbSectionSettings_currentSectionType(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setCurrentSectionType(OdDbSectionSettings.SectionType nSecType)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setCurrentSectionType(this.swigCPtr, (int)nSecType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdDbSectionSettings.Generation generationOptions(OdDbSectionSettings.SectionType nSecType)
		{
			OdDbSectionSettings.Generation result = (OdDbSectionSettings.Generation)TD_DbPINVOKE.OdDbSectionSettings_generationOptions(this.swigCPtr, (int)nSecType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGenerationOptions(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Generation nOptions)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setGenerationOptions(this.swigCPtr, (int)nSecType, (int)nOptions);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getSourceObjects(OdDbSectionSettings.SectionType nSecType, OdDbObjectIdArray ids)
		{
			TD_DbPINVOKE.OdDbSectionSettings_getSourceObjects(this.swigCPtr, (int)nSecType, OdDbObjectIdArray.getCPtr(ids));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setSourceObjects(OdDbSectionSettings.SectionType nSecType, OdDbObjectIdArray ids)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setSourceObjects(this.swigCPtr, (int)nSecType, OdDbObjectIdArray.getCPtr(ids));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdDbObjectId destinationBlock(OdDbSectionSettings.SectionType nSecType)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbSectionSettings_destinationBlock(this.swigCPtr, (int)nSecType);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDestinationBlock(OdDbSectionSettings.SectionType nSecType, OdDbObjectId id)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setDestinationBlock(this.swigCPtr, (int)nSecType, OdDbObjectId.getCPtr(id));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public string destinationFile(OdDbSectionSettings.SectionType nSecType)
		{
			string result = TD_DbPINVOKE.OdDbSectionSettings_destinationFile(this.swigCPtr, (int)nSecType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDestinationFile(OdDbSectionSettings.SectionType nSecType, string pszFileName)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setDestinationFile(this.swigCPtr, (int)nSecType, pszFileName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool visibility(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			bool result = TD_DbPINVOKE.OdDbSectionSettings_visibility(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setVisibility(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, bool bVisible)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setVisibility(this.swigCPtr, (int)nSecType, (int)nGeometry, bVisible);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdCmColor color(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbSectionSettings_color(this.swigCPtr, (int)nSecType, (int)nGeometry), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setColor(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, OdCmColor color)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setColor(this.swigCPtr, (int)nSecType, (int)nGeometry, OdCmColor.getCPtr(color));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public string layer(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			string result = TD_DbPINVOKE.OdDbSectionSettings_layer(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLayer(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, string pszLayer)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setLayer(this.swigCPtr, (int)nSecType, (int)nGeometry, pszLayer);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public string linetype(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			string result = TD_DbPINVOKE.OdDbSectionSettings_linetype(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLinetype(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, string pszLinetype)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setLinetype(this.swigCPtr, (int)nSecType, (int)nGeometry, pszLinetype);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double linetypeScale(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			double result = TD_DbPINVOKE.OdDbSectionSettings_linetypeScale(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLinetypeScale(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, double fScale)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setLinetypeScale(this.swigCPtr, (int)nSecType, (int)nGeometry, fScale);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public string plotStyleName(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			string result = TD_DbPINVOKE.OdDbSectionSettings_plotStyleName(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setPlotStyleName(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, string pszPlotStyleName)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setPlotStyleName(this.swigCPtr, (int)nSecType, (int)nGeometry, pszPlotStyleName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public LineWeight lineWeight(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			LineWeight result = (LineWeight)TD_DbPINVOKE.OdDbSectionSettings_lineWeight(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLineWeight(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, LineWeight nLineWeight)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setLineWeight(this.swigCPtr, (int)nSecType, (int)nGeometry, (int)nLineWeight);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public int faceTransparency(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			int result = TD_DbPINVOKE.OdDbSectionSettings_faceTransparency(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setFaceTransparency(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, int nTransparency)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setFaceTransparency(this.swigCPtr, (int)nSecType, (int)nGeometry, nTransparency);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public int edgeTransparency(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			int result = TD_DbPINVOKE.OdDbSectionSettings_edgeTransparency(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setEdgeTransparency(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, int nTransparency)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setEdgeTransparency(this.swigCPtr, (int)nSecType, (int)nGeometry, nTransparency);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool hatchVisibility(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			bool result = TD_DbPINVOKE.OdDbSectionSettings_hatchVisibility(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setHatchVisibility(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, bool bVisible)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHatchVisibility(this.swigCPtr, (int)nSecType, (int)nGeometry, bVisible);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getHatchPattern(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, SWIGTYPE_p_OdDbHatch__HatchPatternType nPatternType, ref string pszPatternName)
		{
			IntPtr intPtr = Marshal.StringToCoTaskMemUni(pszPatternName);
			IntPtr value = intPtr;
			try
			{
				TD_DbPINVOKE.OdDbSectionSettings_getHatchPattern(this.swigCPtr, (int)nSecType, (int)nGeometry, SWIGTYPE_p_OdDbHatch__HatchPatternType.getCPtr(nPatternType), ref intPtr);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
			}
			finally
			{
				if (intPtr != value)
				{
					pszPatternName = Marshal.PtrToStringUni(intPtr);
				}
			}
		}

		public void setHatchPattern(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, OdDbHatch.HatchPatternType nPatternType, string pszPatternName)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHatchPattern(this.swigCPtr, (int)nSecType, (int)nGeometry, (int)nPatternType, pszPatternName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double hatchAngle(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			double result = TD_DbPINVOKE.OdDbSectionSettings_hatchAngle(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setHatchAngle(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, double fAngle)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHatchAngle(this.swigCPtr, (int)nSecType, (int)nGeometry, fAngle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double hatchSpacing(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			double result = TD_DbPINVOKE.OdDbSectionSettings_hatchSpacing(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setHatchSpacing(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, double fSpacing)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHatchSpacing(this.swigCPtr, (int)nSecType, (int)nGeometry, fSpacing);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double hatchScale(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			double result = TD_DbPINVOKE.OdDbSectionSettings_hatchScale(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setHatchScale(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, double fScale)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHatchScale(this.swigCPtr, (int)nSecType, (int)nGeometry, fScale);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool hiddenLine(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			bool result = TD_DbPINVOKE.OdDbSectionSettings_hiddenLine(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setHiddenLine(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, bool bHiddenLine)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setHiddenLine(this.swigCPtr, (int)nSecType, (int)nGeometry, bHiddenLine);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool divisionLines(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry)
		{
			bool result = TD_DbPINVOKE.OdDbSectionSettings_divisionLines(this.swigCPtr, (int)nSecType, (int)nGeometry);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDivisionLines(OdDbSectionSettings.SectionType nSecType, OdDbSectionSettings.Geometry nGeometry, bool bShow)
		{
			TD_DbPINVOKE.OdDbSectionSettings_setDivisionLines(this.swigCPtr, (int)nSecType, (int)nGeometry, bShow);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		[Flags]
		public enum SectionType
		{
			kLiveSection = 1,
			k2dSection = 2,
			k3dSection = 4
		}

		[Flags]
		public enum Geometry
		{
			kIntersectionBoundary = 1,
			kIntersectionFill = 2,
			kBackgroundGeometry = 4,
			kForegroundGeometry = 8,
			kCurveTangencyLines = 16
		}

		[Flags]
		public enum Generation
		{
			kSourceAllObjects = 1,
			kSourceSelectedObjects = 2,
			kDestinationNewBlock = 16,
			kDestinationReplaceBlock = 32,
			kDestinationFile = 64
		}
	}
}
